package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.entity.ApAuthor;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleClient {
    /**
     * 新增作者
     * @param author
     * @return
     */
    @PostMapping("/api/v1/author")
    @ApiOperation(value = "新增",notes = "author:mcm")
    @ApiImplicitParam(name = "author",value = "请求对象",required = true,dataType = "ApAuthor")
    public ResponseResult<ApAuthor> saveApAuthor(@RequestBody ApAuthor author);
}
